<?php
/*
 * timeline.xml.php
 * Description: XML data for the SIMILE Timline Plugin
 * Plugin URI: http://www.freshlabs.de/journal/archives/2006/10/wordpress-plugin-simile-timeline/
 * Author: Tim Isenheim
 */
include_once('../../../../wp-config.php');
header('Content-type: text/xml; charset=' . get_settings('blog_charset'), true);

echo '<?xml version="1.0" encoding="'.get_settings('blog_charset').'"?>';

remove_filter('the_excerpt','wpautop');

query_posts('showposts=600&orderby=date');
?>
<data>
<?php
// temporarily save the GMT offset
if(get_option('gmt_offset') > 0) $sep = "+"; else $sep = "-";
$gmt_offset = get_option('gmt_offset');

/* Begin the LOOP */
while (have_posts()) : the_post(); ?>
<event 
	start="<?php echo get_the_time('M d Y H:i:s') . " GMT" . date('O'); ?>"
	title="<?php the_title_rss(); ?>"
	link="<?php permalink_single_rss(); ?>">
</event>

<?php endwhile;?>
</data>